package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * TODO
 *
 * @Author huang
 * @Date 2025/5/10 2025/5/10
 */
@Data
@NoArgsConstructor
@AllArgsConstructor(staticName = "of")
@Builder
@TableName(value = "tb_user")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
   private Long id;
    @TableField(value = "username")
   private String name;
    @TableField(value = "is_married")
   private boolean is_married;
    @TableField(value = "`order`")
   private Integer order;
    @TableField(exist = false)
   private String address;
}
